import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AboutModule} from './private/about/about.module';

const routes: Routes = [
  {
    path: 'shops' , loadChildren : './shops/shops.module#ShopsModule'
  },
  {
    path: 'shopping-cart' , loadChildren : './shopping-cart/shopping-cart.module#ShoppingCartModule'
  },
  {
    path: 'details' , loadChildren : './shops/details/details.module#DetailsModule'
  },
  {
    path: 'private' , loadChildren: './private/private.module#PrivateModule',
  },
      {
        path: 'order' , loadChildren: './private/order/order.module#OrderModule'
      },
      {
        path: 'about' , loadChildren: './private/about/about.module#AboutModule'
      },
      {
        path: 'address' , loadChildren: './private/address/address.module#AddressModule'
      },
  {
    path: 'login' , loadChildren: './login/login.module#LoginModule'
  },
  {
    path: '**' , redirectTo : 'shops'
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
